﻿using Mt.Site.Core.Base.Localization;
using System.Collections.Generic;

namespace Mt.Site.Application.Navigation
{
    /// <summary>
    /// 栏目附加信息管理的配置
    /// </summary>
    internal class ConfigItem
    {
        /// <summary>
        /// 是否开启
        /// </summary>
        public bool enable { get; set; }

        /// <summary>
        /// 分组
        /// </summary>
        public List<string> key { get; set; }

        /// <summary>
        /// 自定义的图片上传配置(自定义配置的标识)
        /// </summary>
        public Dictionary<string, string> uploadConfig { get; set; }

        /// <summary>
        /// 自定义图片的规格描述
        /// </summary>
        public Dictionary<string, Dictionary<string, LocalStringForConfig>> description { get; set; }
    }
}

/*
{
    "banner": {
        "enable": false
    },
    "imageText": {
        "enable": true,
        "key": [
            "TWO",
            "Three",
            "轮播展示"
        ],
        "names": {
            "TWO": {
                "Title": "标题",
                "Picurl": "背景图1",
                "PicurlOnHover": "背景图2",
                "Text": "Text"
            },
            "Three": {
                "Title": "标题",
                "Text": "Text"
            },
            "轮播展示": {
                "Title": "标题",
                "Picurl": "背景图1"
            }
        },
        "usingEditor": {
            "TWO": true,
            "Three": true
        },
		"description":{
			"TWO":{
				"Picurl": {
					"Default": "单个文件最大30M。可上传类型 *.pdf,*.zip。",
					"Values": {
						"en": "单个文件最大30M。可上传类型 *.pdf,*zip。",
						"zh-CN": "单个文件最大30M。可上传类型 *.pdf。"
					}
				},
				"PicurlOnHover": {
					"Default": "单个文件最大30M。可上传类型 *.pdf,*.zip。"
				}
			},
			"轮播展示":{
				"Picurl": {
					"Default": "单个文件最大30M。可上传类型 *.pdf,*.zip。"
				}
			}
		}
    },
    "text": {
        "enable": false
    },
    "extendedData": {
        "enable": true,
        "key": [
            "default"
        ],
        "names": {
            "default": {
                "Title": "Title",
                "Description":"Description",
                "Picurl": "图片1",
                "PicurlOnHover": "图片2"
            }
        },
		"description":{
			"default":{
				"Picurl": {
					"Default": "单个文件最大30M。可上传类型 *.pdf,*.zip。"
				}
			}
		}
    }
} 
*  */
